Repository navigation
Menu not visible on small screens - #17592
Conversation
|
Hey @yashh7p! 👋 Thank you for contributing to JabRef! We have automated checks in place, based on which you will soon get feedback if any of them are failing. We also use Qodo for review assistance. It will update your pull request description with a review help and offer suggestions to improve the pull request. After all automated checks pass, a maintainer will also review your contribution. Once that happens, you can go through their comments in the "Files changed" tab and act on them, or reply to the conversation if you have further inputs. You can read about the whole pull request process in our contribution guide. Please ensure that your pull request is in line with our AI Usage Policy and make necessary disclosures. |
PR Summary by QodoMake side panels accessible in small windows
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Code Review by Qodo
1. Side pane still clips in small windows
|
|
“Source Code Tests / Database tests” fails in SynchronizationSimulatorTest.simulateLiveGroupEditPropagation (client B still sees “Group A” instead of “Renamed group”). My PR only touches JabRefFrame.java, a CSS file and CHANGELOG.md, so this looks unrelated, possibly flaky or caused by a recent change on main. Could someone re-run it or confirm? |
yashh7p
left a comment
There was a problem hiding this comment.
The only failing check is “Would merge into the other branch”: JabRefFrame.java differs by roughly 440 lines between main and black-forest, so my change conflicts there and a smaller change wouldn’t avoid it.
Could you remove the dev: send-to-black-forest label? This is a UI usability fix, and I don’t think it needs to reach the released version before the next regular release. If you’d rather port it, I understand a draft port PR will be opened after the merge, and I’m happy to help resolve it if needed.
Thanks!
|
Merging. Thanks for the PR :-) Having a scrollbar is a good enough solution. Users with small screens are the minority and having a scrollbar is better than parts of the UI simply vanishing. Users with 1920x1080 and larger are not affected in any way, unless they increase the font size. |
|
Successfully created backport PR for |


Summary
When the JabRef window has limited space, the Groups, Web search and OpenOffice/LibreOffice panels in the side pane could become unreachable. This change wraps the side pane in a JavaFX
ScrollPane.After review feedback, the approach was simplified to avoid confusing scrollbars:
JabRefFrame.java.Known limitation: when the side pane is scrolled sideways, the "Add group" button scrolls with the content. Moving it next to the filter field would fix this, but it touches
GroupTreeView, so it is better as a follow-up.Steps to test
Screenshots
Normal window: only the groups list scrolls
TODO: add cropped screenshot of the side pane in a normal window
Short window: outer scrollbar as fallback
TODO: add cropped screenshot of the side pane in a short window
Related issues and pull requests
Closes #17470
AI usage
I used Claude to help investigate the issue, suggest the
ScrollPane-based implementation inJabRefFrame.javaandSidePaneComponent.java, and adjust the layout and CSS after review feedback. I reviewed, tested and understand the code and take responsibility for it.AI CHECKLIST.md walkthrough
1. Code self-review
Nullability and control flow
== null/!= nullchecks — JSpecify annotations (@NullMarked,@Nullable,@NonNull) used instead.Objects.requireNonNull(...)— nullability expressed via JSpecify annotations.@NullMarked(org.jspecify.annotations.NullMarked).@NullMarked(org.jspecify.annotations.NullMarked).Optionalconsumed withifPresent/ifPresentOrElse/map/orElseThrow— neverorElse(unusedValue)nor anisPresent()+get()block.StringUtil.isBlank(...)used instead ofs == null || s.isBlank().Exceptions
catch (Exception e)— only specific exceptions are caught.throw new RuntimeException(...)/IllegalStateException(...)— these tear down the whole application.LOGGER.info("...", e)), not concatenated into the message string.Style and idioms
BibEntryobjects built with withers (withField, notsetField).List.of()/Map.of()/Set.of(),Path.of(),SequencedCollection/SequencedSet, text blocks.Pattern.compile(...)constant, notString.matches(...).org.jabref.logic.util.BackgroundTask, notnew Thread().///) uses Markdown syntax, not JavaDoc inline tags:`code`instead of{@code},[ClassName]instead of{@link}.User-facing text
Localization.langin Java,%prefix in FXML).!; labels do not end with:."...: %0"), not string concatenation.Security
text/htmlresponse — including exception/error messages, not just the success body (XSS).Tests
org.jabref.model/org.jabref.logichave added or updated tests.assertEquals), use plain JUnit asserts (not AssertJ), have no@DisplayName, do not catch exceptions (let them propagate so JUnit reports setup/teardown failures directly), and use@TempDirinstead of manual temp directories.2. Verification commands
./gradlew :jablib:check(or./gradlew checkfor all modules)../gradlew checkstyleMain checkstyleTest checkstyleJmh../gradlew modernizer../gradlew --no-configuration-cache :rewriteDryRunreports no changes (run./gradlew rewriteRunto fix)../gradlew javadoc.npx markdownlint-cli2 "docs/**/*.md" "*.md"(only if Markdown changed).npm ci && npm run textlintreports no misspellings (only if Markdown changed).rewriteRun:docker run -v $(pwd):/github/workspace ghcr.io/leventebajczi/intellij-format:master "*.java" "" ".idea/codeStyles/Project.xml".3. Documentation
CHANGELOG.mdentry added if the change is visible to the user (end-user wording, no extra blank lines, sorted in next to existing entries about the same component/feature). Link the issue if one exists; link the PR only when no issue exists.docs/requirements/<area>.mdif the change is a new feature or significant bug fix (skip for refactors, minor fixes, and internal changes).docs/updated if behavior or architecture changed.4. Pull request
.github/PULL_REQUEST_TEMPLATE.md, every section filled.[x],[ ], or[/].gh pr create --body-file <file>(not--body).Checklist
CHANGELOG.mddescribing the change from the user's point of view (if the change is visible to the user)